package com.example.assetmanagement.service;

import com.example.assetmanagement.common.PageRequest;
import com.example.assetmanagement.common.PageResponse;
import com.example.assetmanagement.domain.Category;

import java.util.List;

public interface CategoryService {

    PageResponse<Category> list(PageRequest pageRequest, String name);

    List<Category> tree();

    Category getById(Long id);

    void add(Category category);

    void update(Long id, Category category);

    void delete(Long id);

    void batchDelete(List<Long> ids);

    List<Category> listAll();
} 